home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / patches / ami301c.zip / QKGEOM.SM$ / QKGEOM.SMM
INI File  |  1993-05-27  |  18KB  |  1,431 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     
  5. [files]
  6. [charset]
  7.     82
  8.     ANSI (Windows, IBM CP 1252)
  9. [revisions]
  10.     0
  11. [prn]
  12.     QMS-PS 810
  13. [port]
  14.     LPT1:
  15. [lang]
  16.     1
  17. [desc]
  18.     Quickly calculate Sine, Cosine, and Tangent of an angle.
  19.     
  20.     
  21.     
  22.     
  23.     738529652
  24.     21
  25.     732310448
  26.     647
  27.     6
  28.     0
  29.     0
  30.     0
  31.     0
  32.     
  33.     
  34.     
  35.     
  36.     
  37.     
  38.     1
  39. [fopts]
  40.     0
  41.     1
  42.     0
  43.     0
  44. [lnopts]
  45.     2
  46.     Body Text
  47.     1
  48. [docopts]
  49.     5
  50.     2
  51. [GramStyle]
  52.     
  53. [ParaNum]
  54.     1
  55. [tag]
  56.     Body Text
  57.     2
  58.     [fnt]
  59.         Times New Roman
  60.         240
  61.         0
  62.         49152
  63.     [algn]
  64.         1
  65.         1
  66.         0
  67.         0
  68.         0
  69.     [spc]
  70.         33
  71.         273
  72.         1
  73.         0
  74.         0
  75.         1
  76.         100
  77.     [brk]
  78.         4
  79.     [line]
  80.         8
  81.         0
  82.         1
  83.         0
  84.         1
  85.         1
  86.         1
  87.         10
  88.         10
  89.         1
  90.     [spec]
  91.         0
  92.         0
  93.         
  94.         0
  95.         1
  96.         1
  97.         0
  98.         0
  99.         0
  100.         0
  101.     [nfmt]
  102.         280
  103.         1
  104.         2
  105.         .
  106.         ,
  107.         $
  108.     Body Text
  109.     0
  110.     0
  111. [tag]
  112.     Body Single
  113.     3
  114.     [fnt]
  115.         Times New Roman
  116.         240
  117.         0
  118.         49152
  119.     [algn]
  120.         1
  121.         1
  122.         0
  123.         0
  124.         0
  125.     [spc]
  126.         33
  127.         273
  128.         1
  129.         0
  130.         0
  131.         1
  132.         100
  133.     [brk]
  134.         4
  135.     [line]
  136.         8
  137.         0
  138.         1
  139.         0
  140.         1
  141.         1
  142.         1
  143.         10
  144.         10
  145.         1
  146.     [spec]
  147.         0
  148.         0
  149.         
  150.         0
  151.         1
  152.         1
  153.         0
  154.         0
  155.         0
  156.         0
  157.     [nfmt]
  158.         280
  159.         1
  160.         2
  161.         .
  162.         ,
  163.         $
  164.     Body Single
  165.     0
  166.     0
  167. [tag]
  168.     Bullet
  169.     4
  170.     [fnt]
  171.         Times New Roman
  172.         240
  173.         0
  174.         49152
  175.     [algn]
  176.         1
  177.         1
  178.         0
  179.         288
  180.         288
  181.     [spc]
  182.         33
  183.         273
  184.         1
  185.         0
  186.         0
  187.         1
  188.         100
  189.     [brk]
  190.         4
  191.     [line]
  192.         8
  193.         0
  194.         1
  195.         0
  196.         1
  197.         1
  198.         1
  199.         10
  200.         10
  201.         1
  202.     [spec]
  203.         0
  204.         0
  205.         <*0>
  206.         360
  207.         1
  208.         1
  209.         0
  210.         0
  211.         0
  212.         0
  213.     [nfmt]
  214.         272
  215.         1
  216.         2
  217.         .
  218.         ,
  219.         $
  220.     Bullet
  221.     0
  222.     0
  223. [tag]
  224.     Bullet 1
  225.     5
  226.     [fnt]
  227.         Times New Roman
  228.         240
  229.         0
  230.         49152
  231.     [algn]
  232.         1
  233.         1
  234.         288
  235.         288
  236.         288
  237.     [spc]
  238.         33
  239.         273
  240.         1
  241.         0
  242.         0
  243.         1
  244.         100
  245.     [brk]
  246.         4
  247.     [line]
  248.         8
  249.         0
  250.         1
  251.         0
  252.         1
  253.         1
  254.         1
  255.         10
  256.         10
  257.         1
  258.     [spec]
  259.         0
  260.         0
  261.         <*5>
  262.         0
  263.         1
  264.         1
  265.         0
  266.         0
  267.         0
  268.         0
  269.     [nfmt]
  270.         280
  271.         1
  272.         2
  273.         .
  274.         ,
  275.         $
  276.     Bullet 1
  277.     0
  278.     0
  279. [tag]
  280.     Number List
  281.     6
  282.     [fnt]
  283.         Times New Roman
  284.         240
  285.         0
  286.         49152
  287.     [algn]
  288.         1
  289.         1
  290.         360
  291.         360
  292.         360
  293.     [spc]
  294.         33
  295.         273
  296.         1
  297.         0
  298.         0
  299.         1
  300.         100
  301.     [brk]
  302.         4
  303.     [line]
  304.         8
  305.         0
  306.         1
  307.         0
  308.         1
  309.         1
  310.         1
  311.         10
  312.         10
  313.         1
  314.     [spec]
  315.         0
  316.         0
  317.         <*:>.
  318.         360
  319.         1
  320.         1
  321.         0
  322.         16
  323.         0
  324.         0
  325.     [nfmt]
  326.         272
  327.         1
  328.         2
  329.         .
  330.         ,
  331.         $
  332.     Number List
  333.     0
  334.     0
  335. [tag]
  336.     Subhead
  337.     7
  338.     [fnt]
  339.         Times New Roman
  340.         240
  341.         0
  342.         49155
  343.     [algn]
  344.         1
  345.         1
  346.         0
  347.         0
  348.         0
  349.     [spc]
  350.         33
  351.         273
  352.         1
  353.         72
  354.         72
  355.         1
  356.         100
  357.     [brk]
  358.         4
  359.     [line]
  360.         8
  361.         0
  362.         1
  363.         0
  364.         1
  365.         1
  366.         1
  367.         10
  368.         10
  369.         1
  370.     [spec]
  371.         0
  372.         2
  373.         
  374.         0
  375.         1
  376.         1
  377.         0
  378.         0
  379.         0
  380.         0
  381.     [nfmt]
  382.         272
  383.         1
  384.         2
  385.         .
  386.         ,
  387.         $
  388.     Subhead
  389.     0
  390.     0
  391. [tag]
  392.     Title
  393.     8
  394.     [fnt]
  395.         Arial
  396.         360
  397.         0
  398.         16385
  399.     [algn]
  400.         4
  401.         1
  402.         0
  403.         0
  404.         0
  405.     [spc]
  406.         33
  407.         446
  408.         1
  409.         144
  410.         72
  411.         1
  412.         100
  413.     [brk]
  414.         16
  415.     [line]
  416.         8
  417.         0
  418.         1
  419.         0
  420.         1
  421.         1
  422.         1
  423.         10
  424.         10
  425.         1
  426.     [spec]
  427.         0
  428.         1
  429.         
  430.         0
  431.         1
  432.         1
  433.         0
  434.         0
  435.         0
  436.         0
  437.     [nfmt]
  438.         272
  439.         1
  440.         2
  441.         .
  442.         ,
  443.         $
  444.     Title
  445.     0
  446.     0
  447. [tag]
  448.     Header
  449.     9
  450.     [fnt]
  451.         Times New Roman
  452.         240
  453.         0
  454.         49152
  455.     [algn]
  456.         1
  457.         1
  458.         0
  459.         0
  460.         0
  461.     [spc]
  462.         33
  463.         273
  464.         1
  465.         0
  466.         0
  467.         1
  468.         100
  469.     [brk]
  470.         4
  471.     [line]
  472.         8
  473.         0
  474.         1
  475.         0
  476.         1
  477.         1
  478.         1
  479.         10
  480.         10
  481.         1
  482.     [spec]
  483.         0
  484.         0
  485.         
  486.         0
  487.         1
  488.         1
  489.         0
  490.         0
  491.         0
  492.         0
  493.     [nfmt]
  494.         280
  495.         1
  496.         2
  497.         .
  498.         ,
  499.         $
  500.     Header
  501.     0
  502.     0
  503. [tag]
  504.     Footer
  505.     11
  506.     [fnt]
  507.         Times New Roman
  508.         240
  509.         0
  510.         49152
  511.     [algn]
  512.         1
  513.         1
  514.         0
  515.         0
  516.         0
  517.     [spc]
  518.         33
  519.         273
  520.         1
  521.         0
  522.         0
  523.         1
  524.         100
  525.     [brk]
  526.         4
  527.     [line]
  528.         8
  529.         0
  530.         1
  531.         0
  532.         1
  533.         1
  534.         1
  535.         10
  536.         10
  537.         1
  538.     [spec]
  539.         0
  540.         0
  541.         
  542.         0
  543.         1
  544.         1
  545.         0
  546.         0
  547.         0
  548.         0
  549.     [nfmt]
  550.         280
  551.         1
  552.         2
  553.         .
  554.         ,
  555.         $
  556.     Footer
  557.     0
  558.     0
  559. [lay]
  560.     Standard
  561.     513
  562.     [rght]
  563.         15840
  564.         12240
  565.         1
  566.         1440
  567.         1440
  568.         1
  569.         1440
  570.         1440
  571.         0
  572.         1
  573.         0
  574.         1
  575.         0
  576.         2
  577.         1
  578.         1440
  579.         10800
  580.         12
  581.         1
  582.         720
  583.         1
  584.         1440
  585.         1
  586.         2160
  587.         1
  588.         2880
  589.         1
  590.         3600
  591.         1
  592.         4320
  593.         1
  594.         5040
  595.         1
  596.         5760
  597.         1
  598.         6480
  599.         1
  600.         7200
  601.         1
  602.         7920
  603.         1
  604.         8640
  605.     [hrght]
  606.     [lyfrm]
  607.         1
  608.         11200
  609.         0
  610.         0
  611.         12240
  612.         1440
  613.         0
  614.         1
  615.         3
  616.         1 0 0 0 0 0 0
  617.         0
  618.         0
  619.         1
  620.     [frmlay]
  621.         1440
  622.         12240
  623.         1
  624.         1440
  625.         72
  626.         1
  627.         792
  628.         1440
  629.         0
  630.         1
  631.         0
  632.         1
  633.         1
  634.         0
  635.         1
  636.         1440
  637.         10800
  638.         2
  639.         2
  640.         4680
  641.         3
  642.         9360
  643.     [txt]
  644. Peyton McManus
  645.  
  646. Lotus WPD
  647.  
  648. >
  649.     [frght]
  650.     [lyfrm]
  651.         1
  652.         13248
  653.         0
  654.         14400
  655.         12240
  656.         15840
  657.         0
  658.         1
  659.         3
  660.         1 0 0 0 0 0 0
  661.         0
  662.         0
  663.         2
  664.     [frmlay]
  665.         15840
  666.         12240
  667.         1
  668.         1440
  669.         792
  670.         1
  671.         14472
  672.         1440
  673.         0
  674.         1
  675.         0
  676.         1
  677.         1
  678.         0
  679.         1
  680.         1440
  681.         10800
  682.         2
  683.         2
  684.         4680
  685.         3
  686.         9360
  687.     [txt]
  688. >
  689. [elay]
  690. [l1]
  691.     0
  692. [edoc]
  693. <:#284,9360>
  694.  
  695. <:#284,9360>Define    EM_SetSel    1025
  696.  
  697. <:#284,9360>
  698.  
  699. <:#568,9360>Define        CECREATEINSTANCE(LPHANDLE)    DllCall("LTSCE01.DLL,CECREATEINSTANCE,HO",%1)
  700.  
  701. <:#568,9360>Define        CEDESTROYINSTANCE(HANDLE)    DllCall("LTSCE01.DLL,CEDESTROYINSTANCE,HH",%1)
  702.  
  703. <:#568,9360>Define        CECALCNOW(HINSTANCE, lpFormula, lpOutPut)    DllCall("LTSCE01.DLL,CECALCNOW,HHCC",%1,%2,%3)
  704.  
  705. <:#284,9360><:f,,>
  706.  
  707. <:#284,9360>define IsOKToRun(menuname)    GetInfo(217, 24, %1);
  708.  
  709. <:#284,9360>
  710.  
  711. <:#284,9360>
  712.  
  713. <:#284,9360>' How we display numbers in the dlg
  714.  
  715. <:#284,9360>Define    NumDecimals    4
  716.  
  717. <:#284,9360>Define    MyFormat(Value)    FormatNum$("","",NumDecimals,%1)
  718.  
  719. <:#284,9360>
  720.  
  721. <:#284,9360>
  722.  
  723. <:#284,9360>' Dlg Defines
  724.  
  725. <:#284,9360>Define    Dataedit        8000
  726.  
  727. <:#284,9360>Define    Sinradio        20
  728.  
  729. <:#284,9360>Define    Cosradio        21
  730.  
  731. <:#284,9360>Define    Tanradio        22
  732.  
  733. <:#284,9360>Define    Sintext        1002
  734.  
  735. <:#284,9360>Define    Costext        1003
  736.  
  737. <:#284,9360>Define    Tantext        1004
  738.  
  739. <:#284,9360>Define     CopyDatabutton    31
  740.  
  741. <:#284,9360>
  742.  
  743. <:#284,9360>Define    ErrorMessage    "Failed to start the Ltsce01.dll engine"
  744.  
  745. <:#284,9360>
  746.  
  747. <:#284,9360>
  748.  
  749. <:#284,9360>' Win API Defines
  750.  
  751. @Outline2@<:#568,9360>Define    MyGetDlgItemText(hdg, id, string, max)    DllCall("User,GetDlgItemText,HHHCH",%1,%2,%3,%4)
  752.  
  753. <:#284,9360>define    CloseDlg(id)    dllcall("user,PostMessage,HHHHHH", HDLG, 0X111, %1, 0, 0).
  754.  
  755. <:#284,9360>Define    EnableWindow()    DllCall("User,EnableWindow,AHA",%1,%2)
  756.  
  757. <:#284,9360>
  758.  
  759. <:#284,9360>
  760.  
  761. <:#284,9360>
  762.  
  763. @Outline2@<:#284,9360>
  764.  
  765. <:#284,9360>Declare StartEngine()
  766.  
  767. <:#284,9360>Declare DataDlg(Hdlg, id, value)
  768.  
  769. <:#284,9360>Declare FontDlg(Action, Hdlg, id)
  770.  
  771. <:#284,9360>
  772.  
  773. @Subhead@<:#284,9360>Function GetShade()
  774.  
  775. <:#284,9360>DefStr Stat, List, hInstance;
  776.  
  777. <:#284,9360>Mac = GetRunningMacroFile$()
  778.  
  779. <:#284,9360>Id = StartEngine()
  780.  
  781. <:#284,9360>If Id = 0
  782.  
  783. <:#284,9360>    Message(ErrorMessage)
  784.  
  785. <:#284,9360>    Return 0;
  786.  
  787. <:#284,9360>Endif
  788.  
  789. <:#284,9360>RetVal = CECREATEINSTANCE(&hInstance)
  790.  
  791. <:#284,9360>AllocGlobalVar("hInstance",1)
  792.  
  793. <:#284,9360>SetGlobalVar("hInstance",hInstance)
  794.  
  795. <:#284,9360>
  796.  
  797. <:#284,9360>FontDlg(1,0,0)
  798.  
  799. <:#284,9360>SetDlgCallBack(0,"{Mac}!InitDlg")
  800.  
  801. <:#284,9360>SetDlgCallBack(Dataedit,"{Mac}!DataDlg")
  802.  
  803. <:#284,9360>SetDlgCallBack(CopyDatabutton,"{Mac}!CopyData")
  804.  
  805. <:#284,9360>FillEdit(8000,"45")
  806.  
  807. @Outline3@<:#284,9360>FillEdit(20,1)
  808.  
  809. @Outline3@<:#284,9360>DlgKeyInterrupt(112, "{mac}!DisplayHelp")
  810.  
  811. @Outline3@<:#284,9360>
  812.  
  813. <:#284,9360>Box = DialogBox(".","QuickGeo")
  814.  
  815. <:#284,9360>CEDestroyInstance(hInstance)
  816.  
  817. <:#284,9360>FreeGlobalVar("hInstance")
  818.  
  819. <:#284,9360>FontDlg(4,0,0)
  820.  
  821. <:#284,9360>DllFreeLib(id)
  822.  
  823. <:#284,9360>End Function
  824.  
  825. <:#284,9360>
  826.  
  827. <:#284,9360>
  828.  
  829. @Subhead@<:#284,9360>Function StartEngine()
  830.  
  831. <:#284,9360>LibId = DLLLoadLib("LTSCE01.DLL","CECreateInstance","HO")
  832.  
  833. <:#284,9360>If LibId = 0
  834.  
  835. <:#284,9360>    Message("LTSCE01.DLL not found.  Copy the dll to your windows directory")
  836.  
  837. <:#284,9360>    Return 0;
  838.  
  839. <:#284,9360>Endif
  840.  
  841. <:#284,9360>Return Libid
  842.  
  843. <:#284,9360>End function
  844.  
  845. <:#284,9360>
  846.  
  847. @Subhead@<:#284,9360>Function InitDlg(Hdlg, Id, Value)
  848.  
  849. <:#284,9360>IgnoreKeyBoard(2)
  850.  
  851. <:#284,9360>HourGlass(on)
  852.  
  853. <:#284,9360>FontDlg(3,Hdlg, Sinradio)
  854.  
  855. <:#284,9360>FontDlg(3,Hdlg, CosRadio)
  856.  
  857. <:#284,9360>FontDlg(3,Hdlg, TanRadio)
  858.  
  859. <:#284,9360>FontDlg(3,Hdlg, SinText)
  860.  
  861. <:#284,9360>FontDlg(3, Hdlg, CosText)
  862.  
  863. <:#284,9360>FontDlg(3, Hdlg, TanText)
  864.  
  865. <:#284,9360>FontDlg(3,Hdlg, 1000)
  866.  
  867. <:#284,9360>FontDlg(3,Hdlg, 1001)
  868.  
  869. <:#284,9360>FontDlg(3,Hdlg, 8000)
  870.  
  871. <:#284,9360>DataDlg(Hdlg, Id, Value)
  872.  
  873. <:#284,9360>HourGlass(off)
  874.  
  875. <:#284,9360>End Function
  876.  
  877. <:#284,9360>
  878.  
  879. <:#284,9360>
  880.  
  881. @Subhead@<:#284,9360>Function DataDlg(Hdlg, id, value)
  882.  
  883. <:#284,9360>IgnoreKeyBoard(2)
  884.  
  885. <:#284,9360>DefStr Sin, Cos, Tan;
  886.  
  887. <:#284,9360>HourGlass(on)
  888.  
  889. <:#284,9360>hInstance = GetGlobalVar$("hInstance")
  890.  
  891. <:#284,9360>Degree = GetdlgItemText(hDlg, 8000)
  892.  
  893. <:#284,9360>CECalcNow(hInstance,"@Sin({Degree}*@PI/180)",&Sin)
  894.  
  895. <:#284,9360>CECalcNow(hInstance,"@cos({Degree}*@PI/180)",&Cos)
  896.  
  897. <:#284,9360>CECalcNow(hInstance,"@Tan({Degree}*@PI/180)",&Tan)
  898.  
  899. <:#284,9360>
  900.  
  901. <:#284,9360>If 0 != Instr(0,Sin,"E")
  902.  
  903. <:#284,9360>    Sin = 0
  904.  
  905. <:#284,9360>Endif
  906.  
  907. <:#284,9360>
  908.  
  909. <:#284,9360>' Need these lines because the number returned may be xE 10<+&>-19<-&>
  910.  
  911. <:#284,9360>
  912.  
  913. <:#284,9360>If 0 != Instr(0,Cos,"E")
  914.  
  915. <:#284,9360>    Cos = 0
  916.  
  917. <:#284,9360>Endif
  918.  
  919. <:#284,9360>
  920.  
  921. <:#284,9360>If 0 != Instr(0,Tan,"E")
  922.  
  923. <:#284,9360>    Tan = 0
  924.  
  925. <:#284,9360>Endif
  926.  
  927. If Degree = 90 or Degree = 270
  928.  
  929.     Tan = "NA"
  930.  
  931. Endif
  932.  
  933.  
  934. SetDlgItemText(Hdlg, Sintext, MyFormat(Sin))
  935.  
  936. <:#284,9360>SetDlgItemText(Hdlg, Costext, MyFormat(Cos))
  937.  
  938. <:#284,9360>SetDlgItemText(Hdlg, Tantext, MyFormat(Tan))
  939.  
  940. <:#284,9360>HourGlass(off)
  941.  
  942. <:#284,9360>End Function
  943.  
  944. <:#284,9360>
  945.  
  946. <:#284,9360>
  947.  
  948. <:#284,9360>
  949.  
  950. @Subhead@<:#284,9360>FUnction CopyData(Hdlg, Id, value)
  951.  
  952. <:#284,9360>DefStr Data;
  953.  
  954. <:#284,9360>If GetDlgItemText(Hdlg, Sinradio)
  955.  
  956. <:#284,9360>    MyGetDlgItemText(Hdlg, Sintext, &Data, 80)
  957.  
  958. <:#284,9360>Elseif GetDlgItemText(Hdlg, Cosradio)
  959.  
  960. <:#284,9360>    MyGetDlgItemText(hDlg, Costext, &Data, 80)
  961.  
  962. <:#284,9360>Elseif GetDlgItemText(hDlg, Tanradio)
  963.  
  964. <:#284,9360>    MyGetDlgItemText(hDlg, Tantext, &Data, 80)
  965.  
  966. <:#284,9360>Endif
  967.  
  968. <:#284,9360>ClipBoardWrite(Data,1)
  969.  
  970. <:#284,9360>CloseDlg(2)
  971.  
  972. <:#284,9360>End Function
  973.  
  974. <:#284,9360>
  975.  
  976. @Subhead@<:#284,9360>function DisplayHelp()
  977.  
  978. @Outline2@<:#284,9360>' two defines needed for help.  The help name and panel number are defined above
  979.  
  980. @Outline2@<:#284,9360>define FindWindowa() DllCall("user,FindWindow,HCC", %1, %2)
  981.  
  982. @Outline2@<:#284,9360>define WinHelpa(hWnd, file, cmd, ptr)    DllCall("user,WinHelp,HHCHJ", %1, %2, %3, %4)
  983.  
  984. @Outline2@<:#284,9360>prohWnd = FindWindowa("AmiProWndA", 0)
  985.  
  986. @Outline2@<:#284,9360>helpfile = strcat$(GetAmiDirectory$(), "HelpPack.hlp")
  987.  
  988. @Outline2@<:#284,9360>PanelNum= 85 
  989.  
  990. @Outline2@<:#284,9360>WinHelpa(prohWnd, helpfile, 0x0001, Panelnum)
  991.  
  992. @Outline2@<:#284,9360>end function
  993.  
  994. @Subhead@<:#284,9360>
  995.  
  996. <:#284,9360>
  997.  
  998. <:#284,9360>
  999.  
  1000. <:#284,9360>
  1001.  
  1002. @Subhead@<:#284,9360>Function FontDlg(Action, Hdlg, id)
  1003.  
  1004. <:#284,9360>' 1    Create a font and allocvar
  1005.  
  1006. <:#284,9360>' 2    Return the handle of the create font 
  1007.  
  1008. <:#284,9360>' 3    Set the id specified to the font
  1009.  
  1010. <:#284,9360>' 4    Freeglobalvar and delete created object
  1011.  
  1012. <:#284,9360>
  1013.  
  1014. @Outline2@<:#568,9360>define    CreateFontDLG()        DllCall("gdi,CreateFont,HHHHHHHHHHHHHHC", %1, %2, %3, %4, %5, %6, %7, %8, %9, %10, %11, %12, %13, %14)
  1015.  
  1016. @Outline2@<:#284,9360>define    DeleteObjectDLG(handle)    DllCall("gdi,DeleteObject,HH", %1)
  1017.  
  1018. @Outline2@<:#568,9360>define    SendMessageDLG(hwnd, msg, wpara, lparm)    DllCall("user,SendMessage,HHHHJ", %1, %2, %3, %4)
  1019.  
  1020. @Outline2@<:#284,9360>
  1021.  
  1022. @Outline2@<:#284,9360>
  1023.  
  1024. <:#284,9360>Switch Action
  1025.  
  1026. <:#284,9360>    Case 1    ' Create the font and store it
  1027.  
  1028. @Outline2@<:#284,9360>        Font = CreateFontDLG(13, 0, 0, 0, 400, 0, 0, 0, 0, 0, 0, 0, 32, "Helv")
  1029.  
  1030. <:#284,9360>        AllocGlobalVar("FontHandle",1)
  1031.  
  1032. <:#284,9360>        If Font
  1033.  
  1034. <:#284,9360>            SetGlobalVar("FontHandle",Font)
  1035.  
  1036. <:#284,9360>            Return Font
  1037.  
  1038. <:#284,9360>        Else
  1039.  
  1040. <:#284,9360>            Return 0;    ' no font
  1041.  
  1042. <:#284,9360>        Endif
  1043.  
  1044. <:#284,9360>        Break;
  1045.  
  1046. <:#284,9360>    Case 2    ' Return the handle to the font
  1047.  
  1048. <:#284,9360>        Handle = GetGlobalVar$("FontHandle")
  1049.  
  1050. <:#284,9360>        If Handle 
  1051.  
  1052. <:#284,9360>            Return Handle
  1053.  
  1054. <:#284,9360>        Else
  1055.  
  1056. <:#284,9360>            Return 0
  1057.  
  1058. <:#284,9360>        Endif
  1059.  
  1060. <:#284,9360>
  1061.  
  1062. <:#284,9360>    Case 3    ' Set the id to the font
  1063.  
  1064. <:#284,9360>        Handle = GetGlobalVar$("FontHandle")
  1065.  
  1066. <:#284,9360>        If Handle 
  1067.  
  1068. <:#284,9360>            IdControl = GetDlgITem(Hdlg, id)
  1069.  
  1070. <:#284,9360>            SendMessageDlg(idControl, 0x30, Handle, 0)
  1071.  
  1072. <:#284,9360>            Return 1
  1073.  
  1074. <:#284,9360>        Else
  1075.  
  1076. <:#284,9360>            Return 0
  1077.  
  1078. <:#284,9360>        Endif
  1079.  
  1080. <:#284,9360>        Break;        
  1081.  
  1082. <:#284,9360>        
  1083.  
  1084. <:#284,9360>    Case 4    ' Delete the font and clear the var
  1085.  
  1086. <:#284,9360>        Handle = GetGlobalVar$("FontHandle")
  1087.  
  1088. <:#284,9360>        If Handle
  1089.  
  1090. <:#284,9360>            DeleteObjectDLG(Handle)
  1091.  
  1092. <:#284,9360>            Stat = 1    
  1093.  
  1094. <:#284,9360>        Else
  1095.  
  1096. <:#284,9360>            Stat = 0
  1097.  
  1098. <:#284,9360>        Endif
  1099.  
  1100. <:#284,9360>        FreeGlobalVar("FontHandle")
  1101.  
  1102. <:#284,9360>        Return Stat        
  1103.  
  1104. <:#284,9360>    Default
  1105.  
  1106. <:#284,9360>        Message("Fontdlg received an invalid parameter {Action}")
  1107.  
  1108. <:#284,9360>EndSwitch    
  1109.  
  1110. <:#284,9360>
  1111.  
  1112. <:#284,9360>End Function
  1113.  
  1114. @Subhead@<:#284,9360>
  1115.  
  1116. <:#284,9360>
  1117.  
  1118. <:#284,9360>
  1119.  
  1120. <:#284,9360>
  1121.  
  1122. <:#284,9360>
  1123.  
  1124. <:#284,9360>DIALOG    QuickGeo
  1125.  
  1126. <:#284,9360>-2134376448    11    73    32    127    55    ""    "AmiDialog"    "QuickGeometry"
  1127.  
  1128. <:#284,9360>FONT    8    "Helv"
  1129.  
  1130. <:#284,9360>34    4    18    12    8000    1350631424    "edit"    ""    0 
  1131.  
  1132. <:#284,9360>6    20    34    8    20    1342242825    "button"    "Sine:"    0 
  1133.  
  1134. <:#284,9360>6    32    34    8    21    1342242825    "button"    "Cosine:"    0 
  1135.  
  1136. <:#284,9360>6    43    34    10    22    1342242825    "button"    "Tangent:"    0 
  1137.  
  1138. <:#284,9360>83    3    40    14    1    1342373889    "button"    "Done"    0 
  1139.  
  1140. <:#284,9360>83    19    40    14    31    1342373888    "button"    "Copy"    0 
  1141.  
  1142. <:#284,9360>48    20    29    8    1002    1342177280    "static"    "text"    0 
  1143.  
  1144. <:#284,9360>48    32    29    8    1003    1342177280    "static"    "text"    0 
  1145.  
  1146. <:#284,9360>48    44    29    8    1004    1342177280    "static"    "text"    0 
  1147.  
  1148. <:#284,9360>6    6    23    8    1000    1342177280    "static"    "Angle:"    0 
  1149.  
  1150. <:#284,9360>54    6    27    10    1001    1342177280    "static"    "degrees"    0 
  1151.  
  1152. <:#284,9360>END DIALOG
  1153.  
  1154. >
  1155.  
  1156. [Embedded]
  1157. 00013824
  1158. >
  1159. [macsum] 8
  1160. GetShade 0 0 8 40
  1161. StartEngine 524 0 2 68
  1162. InitDlg 729 3 1 77
  1163. DataDlg 1028 3 6 94
  1164. CopyData 1699 3 2 129
  1165. DisplayHelp 2067 0 4 142
  1166. FontDlg 2252 3 5 155
  1167. QuickGeo 3098 0 -1 216
  1168. [macse]
  1169. 14 GetShade
  1170. 0 802
  1171. 13
  1172. 8 4
  1173. 16 StartEngine
  1174. 13
  1175. 8 5
  1176. 6 5
  1177. 5 0
  1178. 18 0
  1179. 11 00000141
  1180. 0 3 "Failed to start the Ltsce01.dll engine"
  1181. 5 0
  1182. 15
  1183. 9
  1184. 0 284 "LTSCE01.DLL,CECREATEINSTANCE,HO" &3
  1185. 13
  1186. 8 6
  1187. 0 271 "hInstance" 1
  1188. 0 264 "hInstance" "{3}"
  1189. 16 FontDlg 1 0 0
  1190. 0 41 0 "{4}!InitDlg"
  1191. 0 41 8000 "{4}!DataDlg"
  1192. 0 41 31 "{4}!CopyData"
  1193. 0 31 8000 "45"
  1194. 0 31 20 1
  1195. 0 47 112 "{4}!DisplayHelp"
  1196. 0 26 "." "QuickGeo"
  1197. 13
  1198. 8 7
  1199. 0 284 "LTSCE01.DLL,CEDESTROYINSTANCE,HH" "{3}"
  1200. 0 266 "hInstance"
  1201. 16 FontDlg 4 0 0
  1202. 0 298 "{5}"
  1203. 6 0
  1204. 15
  1205. 9
  1206. 14 StartEngine
  1207. 0 297 "LTSCE01.DLL" "CECreateInstance" "HO"
  1208. 13
  1209. 8 1
  1210. 6 1
  1211. 5 0
  1212. 18 0
  1213. 11 00000181
  1214. 0 3 "LTSCE01.DLL not found.  Copy the dll to your windows directory"
  1215. 5 0
  1216. 15
  1217. 9
  1218. 6 1
  1219. 15
  1220. 9
  1221. 6 0
  1222. 15
  1223. 9
  1224. 14 InitDlg
  1225. 0 32 2
  1226. 0 296 1
  1227. 16 FontDlg 3 "{0}" 20
  1228. 16 FontDlg 3 "{0}" 21
  1229. 16 FontDlg 3 "{0}" 22
  1230. 16 FontDlg 3 "{0}" 1002
  1231. 16 FontDlg 3 "{0}" 1003
  1232. 16 FontDlg 3 "{0}" 1004
  1233. 16 FontDlg 3 "{0}" 1000
  1234. 16 FontDlg 3 "{0}" 1001
  1235. 16 FontDlg 3 "{0}" 8000
  1236. 16 DataDlg "{0}" "{1}" "{2}"
  1237. 0 296 0
  1238. 6 3
  1239. 15
  1240. 9
  1241. 14 DataDlg
  1242. 0 32 2
  1243. 0 296 1
  1244. 0 265 "hInstance"
  1245. 13
  1246. 8 7
  1247. 0 42 "{0}" 8000
  1248. 13
  1249. 8 8
  1250. 0 284 "LTSCE01.DLL,CECALCNOW,HHCC" "{7}" "@Sin({8}*@PI/180)" &4
  1251. 0 284 "LTSCE01.DLL,CECALCNOW,HHCC" "{7}" "@cos({8}*@PI/180)" &5
  1252. 0 284 "LTSCE01.DLL,CECALCNOW,HHCC" "{7}" "@Tan({8}*@PI/180)" &6
  1253. 5 0
  1254. 0 808 0 "{4}" "E"
  1255. 13
  1256. 18 1
  1257. 11 00000335
  1258. 5 0
  1259. 8 4
  1260. 5 0
  1261. 0 808 0 "{5}" "E"
  1262. 13
  1263. 18 1
  1264. 11 00000392
  1265. 5 0
  1266. 8 5
  1267. 5 0
  1268. 0 808 0 "{6}" "E"
  1269. 13
  1270. 18 1
  1271. 11 00000449
  1272. 5 0
  1273. 8 6
  1274. 6 8
  1275. 5 90
  1276. 18 0
  1277. 6 8
  1278. 5 270
  1279. 18 0
  1280. 1 2
  1281. 11 00000515
  1282. 7 "NA"
  1283. 8 6
  1284. 0 19 "" "" 4 "{4}"
  1285. 13
  1286. 0 43 "{0}" 1002 [X]
  1287. 0 19 "" "" 4 "{5}"
  1288. 13
  1289. 0 43 "{0}" 1003 [X]
  1290. 0 19 "" "" 4 "{6}"
  1291. 13
  1292. 0 43 "{0}" 1004 [X]
  1293. 0 296 0
  1294. 6 3
  1295. 15
  1296. 9
  1297. 14 CopyData
  1298. 0 42 "{0}" 20
  1299. 13
  1300. 11 00000110
  1301. 0 284 "User,GetDlgItemText,HHHCH" "{0}" 1002 &4 80
  1302. 10 00000291
  1303. 0 42 "{0}" 21
  1304. 13
  1305. 11 00000207
  1306. 0 284 "User,GetDlgItemText,HHHCH" "{0}" 1003 &4 80
  1307. 10 00000291
  1308. 0 42 "{0}" 22
  1309. 13
  1310. 11 00000291
  1311. 0 284 "User,GetDlgItemText,HHHCH" "{0}" 1004 &4 80
  1312. 0 1038 "{4}" 1
  1313. 0 284 "user,PostMessage,HHHHHH" "{0}" 273 2 0 0
  1314. 6 3
  1315. 15
  1316. 9
  1317. 14 DisplayHelp
  1318. 0 284 "user,FindWindow,HCC" "AmiProWndA" 0
  1319. 13
  1320. 8 1
  1321. 0 798
  1322. 13
  1323. 0 16 [X] "HelpPack.hlp"
  1324. 13
  1325. 8 2
  1326. 5 85
  1327. 8 3
  1328. 0 284 "user,WinHelp,HHCHJ" "{1}" "{2}" 1 "{3}"
  1329. 6 0
  1330. 15
  1331. 9
  1332. 14 FontDlg
  1333. 5 1
  1334. 6 0
  1335. 18 0
  1336. 11 00000255
  1337. 0 284 "gdi,CreateFont,HHHHHHHHHHHHHHC" 13 0 0 0 400 0 0 0 0 0 0 0 0 "Helv"
  1338. 13
  1339. 8 4
  1340. 0 271 "FontHandle" 1
  1341. 6 4
  1342. 11 00000217
  1343. 0 264 "FontHandle" "{4}"
  1344. 6 4
  1345. 15
  1346. 9
  1347. 10 00000229
  1348. 5 0
  1349. 15
  1350. 9
  1351. 10 00000834
  1352. 10 00000834
  1353. 5 2
  1354. 6 0
  1355. 18 0
  1356. 11 00000381
  1357. 0 265 "FontHandle"
  1358. 13
  1359. 8 5
  1360. 6 5
  1361. 11 00000356
  1362. 6 5
  1363. 15
  1364. 9
  1365. 10 00000368
  1366. 5 0
  1367. 15
  1368. 9
  1369. 10 00000834
  1370. 5 3
  1371. 6 0
  1372. 18 0
  1373. 11 00000596
  1374. 0 265 "FontHandle"
  1375. 13
  1376. 8 5
  1377. 6 5
  1378. 11 00000558
  1379. 0 44 "{1}" "{2}"
  1380. 13
  1381. 8 6
  1382. 0 284 "user,SendMessage,HHHHJ" "{6}" 48 "{5}" 0
  1383. 5 1
  1384. 15
  1385. 9
  1386. 10 00000570
  1387. 5 0
  1388. 15
  1389. 9
  1390. 10 00000834
  1391. 10 00000834
  1392. 5 4
  1393. 6 0
  1394. 18 0
  1395. 11 00000785
  1396. 0 265 "FontHandle"
  1397. 13
  1398. 8 5
  1399. 6 5
  1400. 11 00000730
  1401. 0 284 "gdi,DeleteObject,HH" "{5}"
  1402. 5 1
  1403. 8 7
  1404. 10 00000740
  1405. 5 0
  1406. 8 7
  1407. 0 266 "FontHandle"
  1408. 6 7
  1409. 15
  1410. 9
  1411. 10 00000834
  1412. 0 3 "Fontdlg received an invalid parameter {0}"
  1413. 6 3
  1414. 15
  1415. 9
  1416. DIALOG QuickGeo
  1417. -2134376448 11 73 32 127 55 "" "AmiDialog" "QuickGeometry" 
  1418. FONT 8 "Helv" 
  1419. 34 4 18 12 8000 1350631424 "edit" "" 0 
  1420. 6 20 34 8 20 1342242825 "button" "Sine:" 0 
  1421. 6 32 34 8 21 1342242825 "button" "Cosine:" 0 
  1422. 6 43 34 10 22 1342242825 "button" "Tangent:" 0 
  1423. 83 3 40 14 1 1342373889 "button" "Done" 0 
  1424. 83 19 40 14 31 1342373888 "button" "Copy" 0 
  1425. 48 20 29 8 1002 1342177280 "static" "text" 0 
  1426. 48 32 29 8 1003 1342177280 "static" "text" 0 
  1427. 48 44 29 8 1004 1342177280 "static" "text" 0 
  1428. 6 6 23 8 1000 1342177280 "static" "Angle:" 0 
  1429. 54 6 27 10 1001 1342177280 "static" "degrees" 0 
  1430. 00013849
  1431.